package com.nervenets.template.hibernate.dao;

import com.nervenets.template.hibernate.domain.user.User;
import com.nervenets.template.hibernate.domain.user.UserExtra;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserExtraDao extends JpaRepository<UserExtra, Long>, JpaSpecificationExecutor<UserExtra> {
    UserExtra findByUserAndField(User user, String field);
}
